package com.chinabank.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="t_review")
public class Review {
	
	private Long id;
	//需求申请
	private DemandReport demandReport;
	//审批人
	private Account screener;
	//当前审批级别
	private Integer level;
	//当前审批结果
	private Boolean result;
	//该结果的原因
	private String reason;
	private Date addDate;
	
	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@ManyToOne
	public DemandReport getDemandReport() {
		return demandReport;
	}
	public void setDemandReport(DemandReport demandReport) {
		this.demandReport = demandReport;
	}
	@ManyToOne
	public Account getScreener() {
		return screener;
	}
	public void setScreener(Account screener) {
		this.screener = screener;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Boolean getResult() {
		return result;
	}
	public void setResult(Boolean result) {
		this.result = result;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public Date getAddDate() {
		return addDate;
	}
	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}
	
}
